* formal.do	JEP	01/27/15
* Build regression table
* Formal sector, wages

*************************** Change log ********************************** 

/*
	
*/	

clear 
version 13.1

* Project info
cap project, doinfo
if _rc==198 {
	if c(username)=="J16339" | c(username)=="A15858" loc master "B:\Col_Minimum_Wage" 
	else if c(os)=="Windows" loc master "C:/Users/jorpp/Dropbox (Brown)/Col_Minimum_Wage"
	else loc master "/home/jperez/AA_Minimum_Wage"
}
else {
	local master "`r(pdir)'"
	local doname "`r(dofile)'" 
	* Project calls
	project, relies_on("`master'/Code/Est/rifregtable2.do")
}

do "`master'/Code/Est/rifregtable2_cities.do"


* Bite - mensual - by industry

rifregtable2, nrif(4) time(1999q1) panels(1 2 3 4 5 6 7) pctiles(5 10 15 20 25 30 50) master("`master'") outdir("`master'/Doc/tosubmit2/tab/formal_cities") dom(_edom_indcc) new(_new_indcc_ciudades) mw(bite) per(mensual) spec(emp_bp)
rifregtable2, nrif(4) time(1999q1) panels(1 2 3 4 5 6 7) pctiles(5 10 15 20 25 30 50) master("`master'") outdir("`master'/Doc/tosubmit2/tab/formal_cities") dom(_edom_indcc) new(_new_indcc_ciudades) mw(bite) per(mensual) spec(sst_emp_bp)
rifregtable2, nrif(4) time(1999q1) panels(1 2 3 4 5 6 7) pctiles(5 10 15 20 25 30 50) master("`master'") outdir("`master'/Doc/tosubmit2/tab/formal_cities") dom(_edom_indcc) new(_new_indcc_ciudades) mw(bite) per(mensual) spec(ie_emp_bp)
rifregtable2, nrif(4) time(1999q1) panels(1 2 3 4 5 6 7) pctiles(5 10 15 20 25 30 50) master("`master'") outdir("`master'/Doc/tosubmit2/tab/formal_cities") dom(_edom_indcc) new(_new_indcc_ciudades) mw(bite) per(mensual) spec(iect_emp_bp)
